home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
cislib_b
/
paint.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
5KB
|
195 lines
PAINT!
Public domain software by Greg
Tavares. - The Nighthawk Group
Distributed by Atari Computer
Association of Orange County
(A.C.A.O.C.). BBS: 714-731-6523
PAINT! allows you to draw colorful
pictures on your TV display, save
them for later viewing, and even
use them with your own program.
Using your joystick as the paint
brush, you can choose a color or
pattern from anyone of the ten paint
cans. Four colors are available,
as well as an unlimited number of
patterns using the available colors.
Special features include a fill
mode, a draw-to mode, and a
close-up mode.
BASIC is not required to run the
PAINT! program. Load it from DOS
using the "L" command in Atari DOS,
or LOAD command in OSS DOS.
Alternatively, it can be automat-
ically loaded and run by renaming
it AUTORUN.SYS for Atari DOS, or
using the STARTUP.EXC feature in
OSS DOS.
Upon running PAINT! the option
screen displays the various disk
commands.
L - Load a picture.
S - Save a picture.
D - Delete a picture.
R - Rename a picture.
+ - Lock a picture file.
- - Unlock a picture file.
C - (Catalog) List the files on the
disk.
RETURN - Go to paint screen.
From the paint screen, the following
commands are available:
OPTION - Return to the option screen
with disk commands.
<CONTROL> - Clear the screen.
CLEAR
SPACE - Enlarge current working
BAR area for detailed drawing.
Push SPACE BAR again to
return to normal mode.
C - Change color. Press C and then
1, 2, 3, or 4 to change the
respective color. Move the
joystick up and down to change
luminance (brightness), left
and right to change hue (color).
Press the fire button when
finished.
D - Draw mode. The cursor will
resemble an "X". Draw by pushing
the fire button while moving the
the joystick.
E - Elastic (draw-to) mode. The
Cursor will resemble an "O".
Push the fire button once to
define the starting point.
Move the cursor to place the
line as desired and push the
fire button again.
F - Fill mode. The cursor will
resemble a "+". Move the
cursor within the boundries
to be filled and press the fire
button.
H - Halt fill mode. Use to halt
filling of an area, or if fill
mode hangs up.
p - Change pattern. The cursor will
resemble a "[]". Select from
paint cans 5 through 10. Position
the cursor over the area with
the desired pattern and push the
fire button. The pattern will
be transferred to the selected
paint can. All four colors
should not be in the selected
pattern.
U - Undo. Removes the last command
from the picture.
W - Paint can window select. Turns
display of paint cans off and on.
0-9 - Choose paint color to use.
The color chosen is shown by a
line covering the can. You can
also chose a color by moving the
cursor to the paint can and
pressing the fire button.
To move the paint can window:
1. Move cursor to the arrow box
in the window. Push the fire
button and move up or down with
the joystick, or;
2. Hold the button on a paddle
controller plugged into Port 2
and turn the paddle.
The picture save format is as
follows. This format is the same
as Micro-Painter.
Screen Memory = 7680 bytes.
Color bytes:
Color 1 - memory location 712.
Color 2 - Memory location 708.
Color 3 - Memory location 709.
Color 4 - Memory location 710.
Use the following guidelines for
loading pictures from BASIC. The
same principles apply when using
other programming languages.
* Graphics 8 no window. (Change
24 to a 8 if you want the window.)
10 GR.24
* Find Display list
20 S=PEEK(560)+256*PEEK(561)
* Change Graphics mode to the same
one paint uses.
30 FOR I=1 TO 210
40 IF PEEK(S+I)=15 THEN POKE S+I,14
50 IF PEEK(S+I)=79 THEN POKE S+I,78
60 NEXT I
* Open the picture file for reading
70 OPEN #1,4,0,"D:NAME.PIC"
* Tell the operating system you want
to read.
80 IOCB=848:POKE IOCB+2,7
* Tell it you want it to store the
information in the screen memory.
90 POKE IOCB+4,PEEK(88):POKE IOCB+5,
PEEK(89)
* And you want it to store 7680
bytes there (0 + 256 * 30 = 7680)
100 POKE IOCB+8,0:POKE IOCB+9,30
* Make it do it.
110 USER=USR(ADR("hhh*LVd"),16)
The characters between the quotes
are small h, small h, small h,
inverse asterisk, capital L,
capital V, inverse small d
* Read colors and store them in
their proper places.
120 GET #1,X:POKE 712,X
130 GET #1,X:POKE 708,X
140 GET #1,X:POKE 709,X
150 GET #1,X:POKE 710,X
160 CLOSE #1
200 GOTO 200
Let your creativity flow and draw up
some breathtaking pictures!